import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',  // 总览
      name: 'Index',
      component: require('@/components/index/Index')
    }, {
      path: '/currentChange', // 当前涨跌
      name: 'CurrentChange',
      component: require('@/components/currentChange/CurrentChange')
    }, {
      path: '/rapidChange', // 急涨急跌
      name: 'RapidChange',
      component: require('@/components/rapidChange/RapidChange')
    }, {
      path: '/stockConnect/:aid', // 沪股通、深股通
      name: 'StockConnect',
      component: require('@/components/stockConnect/StockConnect')
    }, {
      path: '/centralBank', // 央行资金
      name: 'CentralBank',
      component: require('@/components/centralBank/CentralBank')
    }, {
      path: '/largeOrder', // 大单资金
      name: 'LargeOrder',
      component: require('@/components/largeOrder/LargeOrder')
    }, {
      path: '/market', // 市场资金
      name: 'Market',
      component: require('@/components/market/Market')
    }, {
      path: '/shibor', // shibor
      name: 'Shibor',
      component: require('@/components/shibor/Shibor')
    },
    {
      path: '/lifted', // 解禁市值
      name: 'Lifted',
      component: require('@/components/lifted/Lifted')
    }, {
      path: '/finance', // 融资余额
      name: 'Finance',
      component: require('@/components/finance/Finance')
    }, {
      path: '/topSearch', // 热搜
      name: 'TopSearch',
      component: require('@/components/topSearch/TopSearch')
    }
  ]
})
